

import Vue from 'vue'
import Router from 'vue-router'
import Main from 'pages/Main'
import home from 'pages/home/home'
import detail from 'pages/home/detail'
import order from 'pages/home/order'
import orderDetail from 'pages/home/orderDetail'


Vue.use(Router)

export default new Router({
	linkActiveClass: 'cur',
	mode:'history',
  base:'',
	routes: [{
		path: '/',
		//name: 'Main',
		component: Main,
		children: [
      {
        path: '',
        name: 'Main',
        component: home,
        meta: {
        title: '龙年专属红包',
      }
    },
    {
        path: '/home',
        name: 'home',
        component: home,
        meta: {
          title: '龙年专属红包',
         keepAlive:true
      }
    },
		]
  },
  {
    path: '/detail',
    name: 'detail',
    component: detail,
    meta: {
      title: '详情',
    }
    },
   {
    path: '/order',
    name: 'order',
    component: order,
    meta: {
      title: '订单',
    }
    },
     {
    path: '/orderDetail',
    name: 'orderDetail',
    component: orderDetail,
    meta: {
      title: '订单详情',
    }
    },

	]
})
